package com.chenbei.erp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenbei.common.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@TableName("erp_supplier_invoice")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "供应商发票")
@Data
public class SupplierInvoice extends BaseEntity {

    @Schema(description = "主键ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "供应商ID")
    @TableField("supplier_id")
    private Long supplierId;

    @Schema(description = "抬头")
    @TableField("title")
    private String title;

    @Schema(description = "税号")
    @TableField("tax_id")
    private String taxId;

    @Schema(description = "税种[1:增值税普通发票|2:增值税专用发票]")
    @TableField("tax_type")
    private Integer taxType;

    @Schema(description = "税率")
    @TableField("tax_rate")
    private String taxRate;

    @Schema(description = "开户银行")
    @TableField("bank_name")
    private String bankName;

    @Schema(description = "开户账号")
    @TableField("bank_account")
    private String bankAccount;
}
